package edu.uw.tcss360.group6.gui.DataCards;
import javax.swing.*;
import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * edu.uw.tcss360.group6.model.User: Lemtzas
 * Date: 2/23/13
 * Time: 1:46 PM
 * To change this template use File | Settings | File Templates.
 */
@SuppressWarnings("serial")
public abstract class DataCard extends JPanel {
    private  static int PREFERRED_WIDTH  = 150;
    private  static int PREFERRED_HEIGHT = 150;

    private final String my_title;

    public DataCard(String title) {
        super(new GridLayout(5,2));
        my_title = title;
        this.setBackground(Color.WHITE);
        this.setPreferredSize(new Dimension(PREFERRED_WIDTH, PREFERRED_HEIGHT));
    }

    public String getTitle() {
        return my_title;
    }
}
